package com.gxa.service.admin;

import com.gxa.common.R.ResponseData;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.security.Principal;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public interface AdminService {
    ResponseData select_company();

    ResponseData update_company(HttpServletRequest request,String xiTongName, String website, String qiYeName, String qiYeAbstract, String phone,
                                int onOff, int timeout, int wrongNum, MultipartFile[] logoPic) throws IOException, SQLException;

    ResponseData select_log();

    ResponseData insert_log(Principal user, String date, String size, String handle);


    ResponseData select_variable(int currentPage, int pageSize, String keyWord);

    ResponseData into_update_variable(int id);


    ResponseData update_variable(int id, int bianHao, String message, String title, String value);

    ResponseData select_role(int currentPage, int pageSize, String keyWord);

    ResponseData into_add_role();

    ResponseData add_role(String rolename, String note, String perm);

    ResponseData into_update_role(int id);

    ResponseData update_role(int id,String rolename, String note, String perm);

    ResponseData select_user(int currentPage, int pageSize, String keyWord);

    ResponseData into_add_user();

    ResponseData add_user(String number, String realname, String password, String sex, String rolename, String phone, String email);

    ResponseData into_update_user(int id);

    ResponseData update_user(int id,String number, String realname, String password, String sex, String rolename, String phone, String email);


    ResponseData allroleMenu();

    ResponseData roleNameList();

    ResponseData delete_role(int id);

    ResponseData delete_user(int id);

    ResponseData bu_men();


    ResponseData fen_pei(String number, String buMenName);
}
